<?php
namespace Common\Model;
use Common\Model\VRNewsModel;
class NewsColumnEntranceModel extends VRNewsModel
{
	
	protected $_validate = array(
		//array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
	);
	
	public function GetColumnEntranceList($where = array(), $pageStart, $pageSize, $orderby = 'create_time'){
		$return_data = array();
		$list = $this->where($where)->Order("$orderby desc")->limit($pageStart, $pageSize)->select();
		$count = $this->where($where)->count();
		$return_data['column_entrance_list'] = $list;
		$return_data['count'] = $count;
		return $return_data;
	}

}

